<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<link rel="stylesheet" href="./paypage.css">
	</head>
	<body>
		<div class="top">
			<div class="top1">
				<span>您好！欢迎使用支付宝付款 | 常见问题</span>
			</div>
		</div>
		<div class="box">
			<div class="box1">
				<img src="./img/p3.png" alt="">
				<span>我的收银台</span>
			</div>
		</div>
		<div class="nav">
			<p>正在使用即时到账交易<span class="span1">[?]</span>交易将在<i class="i1">34</i>分钟后关闭，请及时付款！</p>
			<h6>交易订单：#FD000014652  <span class="span2">收款方：芬迪(上海)商业...</span></h6>
			<h5>5900.00<i class="i2">元</i></h5>
			<b style="cursor:pointer;">订单详情</b>
		</div>
		<div class="main">
			<h1>支付成功</h1>
			<p><span class="clock">20</span>秒后页面自动跳转</p>
		</div>
		<script src="jquery.min.js"></script>
		<script>
			let address="http://127.0.0.1:81"
			$(".main h1").fadeIn(5000);
			let userid=localStorage.getItem("userid")
			if(!userid){
				window.location.href=`${address}/loadingpage.html`
			}
			else{
				var t = 20;
					var time = document.getElementsByClassName("clock")[0];
				 
					function fun() {
						t--;
						time.innerHTML = t;
						if(t <= 0) {
							window.location.href=`${address}/personcenter.html`
							clearInterval(inter);
						}
					}
					var inter = setInterval("fun()", 1000);
			}
			$(".nav b").click(function(){
				// alert(1)
				window.location.href=`${address}/personcenter.html`
			})
		</script>
	</body>
</html>
